;(function($){
	$.fn.timesRoom_room = function(opts){
		var el = this;
		var opt = {
            roomContainer : "roomContainer",
            entityBack : function(){},
			dataBack : function(){},
			closeBack : function(){},
		}
		var param = $.extend(opt,opts);
		var app = new App(el,param);
	}
	
	var App = function(el,param){
		this.el = el;
		this.param = param;
        this.setSize();
        this.initHtml();
        param.entityBack(this);
	}
	
	App.prototype = {
		bindEvent : function(){
			var el = this.el;
			var param = this.param;
			var t = this;
			
		},
		initHtml : function(){
			var el = this.el;
			var param = this.param;
			var t = this;
            
            var html = '<div class="room-box">';
			for(var i=1;i<=500;i++){
                html += '<div class="room-item" data-room="'+"SSS"+i+'">'+
                            '<div class="json hide">'+JSON.stringify({"room":("SSS"+i)})+'</div>'+
							"SSS"+i+
						'</div>';
			}
			html += '</div>';
            $("#"+param.roomContainer).html(html);
            
        },
        setSize : function(){
            var el = this.el;
            var param = this.param;
            var t = this;
            var top = $("#"+param.roomContainer).offset().top;
            var winH = $(window).height();
            var hh = winH - top - 80;
            $("#"+param.roomContainer).css({"height":hh,"overflow-y":"auto"});
        },
		getDs : function(){
			var el = this.el;
			var param = this.param;
			var t = this;
            var arg1 = {};
            var procedure = "";
            var arg2 = {};
			callProcedure2(arg1,procedure,arg2,function(data){

            },function(data){

            });
		},
    }
    
})(jQuery);